package com.tanger.im.entity;

import com.tanger.common.jpa.IDEntity;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * @Description IM用户分组实体类
 * @Author Hchenbin
 * @Date 2023/12/25 16:28
 * @Version 1.0
 */
@Data
@Entity
@Api(value = "IMUserGroup", tags= " IM用户分组实体类")
@Table(name = "im_user_group")
public class ImUserGroup extends IDEntity implements Serializable {

	@Column(columnDefinition = "varchar(100) NOT NULL COMMENT '分组名称'")
	@ApiModelProperty(value = "分组名称")
	private String name;
	@Column(columnDefinition = "varchar(255) DEFAULT NULL COMMENT '分组图标'")
	@ApiModelProperty(value = "分组图标")
	private String icon;
	@Column(columnDefinition = "varchar(256) DEFAULT NULL COMMENT '备注(签名)'")
	@ApiModelProperty(value = "备注(签名)")
	private String remark;
	@Column(columnDefinition = "int(11) NOT NULL COMMENT '成员数'")
	@ApiModelProperty(value = "成员数")
	private Integer members;
	@Column(columnDefinition = "bigint(20) NOT NULL COMMENT '创建时间'")
	@ApiModelProperty(value = "创建时间")
	private Long createTime;
}
